package com.yt.order.models.bo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import com.alibaba.fastjson.annotation.JSONField;

/**
 * 派单条件过滤信息SaveBO
 *
 * @author yzz
 * @Date 2025-09-03 14:18:02
 */
@Data
public class DispatchRuleFilterSaveBO implements Serializable {
    @ApiModelProperty(value = " 主键 ID")
    private Long id;
    @ApiModelProperty(value = " 乐观锁版本号 ")
    private Integer revision;
    @ApiModelProperty(value = " 关联规则 ID（外键：dispatch_rule_config.id）")
    private Long ruleId;
    @ApiModelProperty(value = " 过滤条件类型（0：星级 / 1：单量 / 2：地理位置等）")
    private Integer filterType;
    @ApiModelProperty(value = " 条件运算符 ")
    private String operator;
    @ApiModelProperty(value = " 条件阈值 ")
    private String filterVal;
    @ApiModelProperty(value = " 单位（如：单 / 星 / 公里）")
    private String unit;
    @ApiModelProperty(value = " 条件执行顺序 ")
    private Integer sort;
    
    @ApiModelProperty("创建时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    
    @ApiModelProperty("更新时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
}